import request from '@/utils/request'

export function getList(query) {
  return request({
    url: '/basic/jcwDevClass/listTableTree',
    method: 'get',
    params: query
  })
}

export function getListAllTree(query) {
  return request({
    url: '/basic/jcwDevClass/listAllTree',
    method: 'get',
    params: query
  })
}

// 已启用  id树
export function getListTree(query) {
  return request({
    url: '/basic/jcwDevClass/listTree',
    method: 'get',
    params: query
  })
}

// 已启用  code树
export function getLisCodetTree(query) {
  return request({
    url: '/basic/jcwDevClass/listCodeTree',
    method: 'get',
    params: query
  })
}

export function saveOrUpdate(param) {
  return request.post('/basic/jcwDevClass/', JSON.stringify(param))
}

export function deleteById(id) {
  return request({
    url: `/basic/jcwDevClass/${id}`,
    method: 'delete'
  })
}

